package com.job.ali;

import java.util.Scanner;

/**
 * @ClassName: test.Ali22
 * @Description:
 * @Author: 12071
 * @Date: 2022/4/15 21:11
 */
public class Ali22 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int m = sc.nextInt();
        sc.nextLine();
        char[][] chars = new char[n][m];
        for (int i = 0; i < n; i++) {
            chars[i] = sc.nextLine().toCharArray();
        }
        int[] stepx = {1,0,1,1};
        int[] stepy = {0,1,1,-1};
        for (int x = 0; x < n; x++) {
            for (int y = 0; y < m; y++) {
                if(chars[x][y]=='.') continue;
                for (int i = 0; i < 4; i++) {
                    int xt=x , yt =y, cnt=0;
                    while (xt>=0 && xt<n && yt>=0 &&yt<m){
                        if(chars[xt][yt]==chars[x][y]){
                            cnt++;
                            //System.out.println(cnt);
                        } else
                            break;
                        if(cnt>=4){
                            if(chars[x][y]=='r')
                                System.out.println("kou");
                            else
                                System.out.println("yukari");
                            return;
                        }
                        xt+=stepx[i];
                        yt+=stepy[i];

                    }
                }
            }
        }
        System.out.println("to be continued");
    }
}
